<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button type="submit" id="btn_submit" onclick="btnAction1()">test1有参 </butto>
        <button type="submit" id="btn_submit" onclick="btnAction2()"> test1无参 </butto>
            <button type="submit" id="btn_submit" onclick="btnAction3()"> test2有参 </butto>
                <button type="submit" id="btn_submit" onclick="btnAction4()"> test2无参 </butto>
                    <script>
         function btnAction1()
         {
           $.ajax({
                cache: false,
                type: "POST",
                url:"http://192.210.204.177:5000/test1",
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
			        alert(data);
                }
            });
          }
           function btnAction2()
         {
           $.ajax({
                cache: false,
                type: "POST",
                url:"http://192.210.204.177:5000/test1",
                async: false,
                error: function(request) {
                    alert("Connection error");



                },
                success: function(data) {
			        alert(data);
                }
            });
          }
           function btnAction3()
         {
           $.ajax({
                cache: false,
                type: "POST",
                url:"http://192.210.204.177:5000/test2",
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
			        alert(data);
                }
            });
          }
           function btnAction4()
         {
           $.ajax({
                cache: false,
                type: "POST",
                url:"http://192.210.204.177:5000/test2",
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
			        alert(data);
                }
            });
          }
</script>
</body>
</html>
